package matlap.client.services.order;

import java.util.List;

import matlap.shared.Order;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("order")
public interface OrderService extends RemoteService {
	int getOrdersNumber();

	List<Order> getOrders();

	List<Order> selectOrdersName();

	List<Order> getOrdersByName(String name);

	void insertOrder(Order o);

	void deleteOrder(Order o);

	void updateOrder(Order o);

	List<Order> getMyOrders(String un);

	int getMyOrdersNumber(String un);

}
